package com.dw.security;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author zhangjing
 * @date 2020/8/21 16:02
 * @Description
 */
@Data
public class Token implements AuthenticationToken {

    private String token;

    public Token() {

    }

    public Token(String token) {
        this.token = token;
    }


    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
